﻿Imports NPOI.SS.UserModel

Public Class MainForm

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        'todo:sdf
        '创建一个Excel文件
        Dim workbook As New NPOI.HSSF.UserModel.HSSFWorkbook
        Dim sheet As NPOI.HSSF.UserModel.HSSFSheet
        Dim row As NPOI.HSSF.UserModel.HSSFRow
        Dim cell As NPOI.HSSF.UserModel.HSSFCell
        'workbook = NPOI.HSSF.UserModel.HSSFWorkbook
        sheet = workbook.CreateSheet("sheet1")
        row = sheet.GetRow(0)
        cell = row.GetCell(0)
        cell.SetCellType(CellType.Blank)

    End Sub
End Class
